<%- include('../layout') %>

<% contentFor('body') { %>
<div class="container">
  <div class="row justify-content-center mt-5">
    <div class="col-md-6">
      <div class="card">
        <div class="card-header bg-primary text-white">
          <h4 class="text-center">管理员登录</h4>
        </div>
        <div class="card-body">
          <form action="/auth/login" method="post">
            <div class="mb-3">
              <label for="username" class="form-label">用户名</label>
              <input type="text" class="form-control" id="username" name="username" required autofocus>
            </div>
            <div class="mb-3">
              <label for="password" class="form-label">密码</label>
              <input type="password" class="form-control" id="password" name="password" required>
            </div>
            <div class="d-grid gap-2">
              <button type="submit" class="btn btn-primary">登录</button>
            </div>
          </form>
        </div>
        <div class="card-footer text-center text-muted">
          <p class="mb-0">动物乐园管理系统</p>
        </div>
      </div>
    </div>
  </div>
</div>
<% } %>